<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<div id="dialog-edit-album" style="display: none;">
    <div class="editAlbumData">
        <form action="" method="post">
        	<input id="dialog-album-id" type="hidden">
        	<div class="editAlbumList">
                <label for="dialog-album-name" class="forName">专辑名称：</label><input id="dialog-album-name" type="text" class="newAlbumName" />
            </div>
            <div class="editAlbumList">
                <label for="dialog-album-description" class="forDescribe">专辑描述：</label><textarea id="dialog-album-description" class="newAlbumDescribe"></textarea>
            </div>
            <div class="editAlbumList">
                <label for="dialog-album-tags" class="forTitle">专辑标签：</label><input id="dialog-album-tags" type="text" class="newAlbumTitle" />
            </div>
            <div class="editAlbumList">
                <label class="forSort">所属类别：</label>
                <select id="dialog-album-gallery" class="addAlbumSort">
                	<c:choose>
                		<c:when test="${not empty album}">
                			<option value="${album.galleryId}">${album.galleryName}</option>
                		</c:when>
                		<c:otherwise>
                			<c:forEach var="gallery" items="${galleries}">
		                		<option value="${gallery.id}">${gallery.name}</option>
		                 	</c:forEach>
                		</c:otherwise>
                	</c:choose>
                </select>
            </div>
            <div class="editAlbumFinish">
                <button id="dialog-album-cancel" type="button" class="exit">取消</button>
            	<button id="dialog-album-submit" type="button" class="albumSub">保存</button>
            </div>
        </form>
    </div>
</div>

<script type="text/javascript" src="${cdn}/js/px/album/editAlbum${pageScope.editAlbumJsVersion}.js"></script>
